package com.s4j.struts.biz.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * 辨证结果-症征明细
 * @author Administrator
 *
 */
@Entity
@Table(name="BIZ_MG_RESULTDTL")
public class MgResultDtl {

	private Long dtlId;
	
	private String name;
	
	private BizMgSyndresult syndresult;

	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	public Long getDtlId() {
		return dtlId;
	}

	public void setDtlId(Long dtlId) {
		this.dtlId = dtlId;
	}

	@Column(length=50)
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name="syndresultId")
	public BizMgSyndresult getSyndresult() {
		return syndresult;
	}

	public void setSyndresult(BizMgSyndresult syndresult) {
		this.syndresult = syndresult;
	}
}
